package html;

import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

import javax.swing.ImageIcon;


public class Logo extends BufferedImage {

	public static final int DEFAULT_DIMENTION = 20;
	
	private Logo(String path,int dimention) {
		super(dimention,dimention,TYPE_INT_ARGB);
		Graphics2D g = createGraphics();
	    g.drawImage(new ImageIcon(ImageIcon.class.getResource(path)).getImage(), 0, 0,dimention , dimention, null);
	    g.dispose();

	}

	public Logo(String path) {
		this(path,DEFAULT_DIMENTION);
	}

	public static final Logo PRINT =new Logo("/resource/imprimer.jpg");
	
	public static final Logo SAVE = new Logo("/resource/enregistrer.jpg");
	
	public static final Logo CANCEL = new Logo("/resource/cancel.png");
	
	public static final Logo TRUE = new Logo("/resource/true.gif");
	
}
